package com.alon.spring01.Listener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @program: spring01
 * @description: ApplicationStarted  启动监听器
 * @author: yulongguang
 * @create: 2019-05-31 16:10
 **/
@Component
public class ApplicationStartedListener implements ApplicationListener<ApplicationEvent> {

    private static final Logger logger= LoggerFactory.getLogger(ApplicationStartedListener.class);
    @Override
    public void onApplicationEvent(ApplicationEvent applicationEvent) {
//       logger.info("==========监听器进来了========");
//       logger.info("applicationEvent:{}",applicationEvent.getClass().getCanonicalName());
    }
}
